<?php 
require_once("../../system/conf/config.php") ;
require_once("../../system/include/header_no.php") ;
?>


<CENTER>

<BR><BR><BR>
<FORM METHOD=POST ACTION="autopage_2.php">
	<table style='margin-left:100px;'>
	<tr>
		<td><input type="text" name='tableName' id='tableName' value="" size='32'></td>
		<td><INPUT TYPE="submit" value="Next"></td>
	</tr>
	<tr>
		<td colspan='2'>
		
		<?php
	//	print $company["db_name"];
		$sqlstr = "show tables";
		$result = get_result($sqlstr,MYSQL_BOTH,$company["db_host"],$company["db_name"],$company["db_user"],$company["db_pass"]);
		$column = "Tables_in_" . $company["db_name"] ;
		// echo $column ;
		for($i=0;$i<count($result);$i++){
			$c = $result[$i][0] ;
			echo "<a href='#' onclick=\"document.getElementById('tableName').value='$c';\">".$c."</a> <br> ";
		}
		?>
		
		</td>
	</tr>
	</table>
	
</FORM>



</CENTER>
<?php
require_once($configs["framework_dir"]."/include/footer_no.php") ;
?>